<template>
  <div class="Home">
    <el-button type="primary" size="small" @click="clickMe">点我</el-button>
    <div class="text">
      我是测试
    </div>
  </div>
</template>

<script>
import { createNamespacedHelpers } from 'vuex';
const { mapMutations } = createNamespacedHelpers('tab');
export default {
  name: 'Home',
  data() {
    return {};
  },
  methods: {
    ...mapMutations(['clickMeText']),
    clickMe() {
      // this.$store.commit('tab/clickMeText'); dispach
      this.clickMeText();
      // this['tab/clickMeText']();
    }
  },
  created() {}
};
</script>

<style lang="scss" scoped>
@import '~@/assets/scss/home';
</style>
